import store from '../src/store/index'

export function hasPermissions(permission) {
  const myPermissions = store.state.user.userInfo.permissionsList
  return myPermissions.indexOf(permission) > -1
}
